<?php
if (session_id() == "") session_start(); // Initialize Session data
ob_start(); // Turn on output buffering
?>
<?php include_once "ewcfg10.php" ?>
<?php include_once "ewmysql10.php" ?>
<?php include_once "phpfn10.php" ?>
<?php include_once "userfn10.php" ?>
<?php
	ew_Header(TRUE);
	$conn = ew_Connect();
	$Language = new cLanguage();

	// Security
	$Security = new cAdvancedSecurity();
	if (!$Security->IsLoggedIn()) $Security->AutoLogin();
	$Security->LoadUserLevel(); // Load User Level
?>
<!DOCTYPE html>
<html>
<head>
<title><?php echo $Language->Phrase("MobileMenu") ?></title>
<meta name="viewport" content="width=device-width, initial-scale=1">
<link rel="stylesheet" type="text/css" href="<?php echo ew_jQueryFile("jquery.mobile-%v.min.css") ?>">
<link rel="stylesheet" type="text/css" href="<?php echo EW_PROJECT_STYLESHEET_FILENAME ?>">
<link rel="stylesheet" type="text/css" href="phpcss/ewmobile.css">
<script type="text/javascript" src="<?php echo ew_jQueryFile("jquery-%v.min.js") ?>"></script>
<script type="text/javascript">

	//$(document).bind("mobileinit", function() {
	//	jQuery.mobile.ajaxEnabled = false;
	//	jQuery.mobile.ignoreContentEnabled = true;
	//});

</script>
<script type="text/javascript" src="<?php echo ew_jQueryFile("jquery.mobile-%v.min.js") ?>"></script>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<meta name="generator" content="PHPMaker v10.0.3">
</head>
<body>
<div data-role="page">
	<div data-role="header">
		<h1><?php echo $Language->ProjectPhrase("BodyTitle") ?></h1>
	</div>
	<div data-role="content">
<?php $RootMenu = new cMenu("RootMenu", TRUE); ?>
<?php

// Generate all menu items
$RootMenu->IsRoot = TRUE;
$RootMenu->AddMenuItem(30, $Language->MenuPhrase("30", "MenuText"), "mensajeslist.php", -1, "", AllowListMenu('{BF52BDE3-CE95-4CBB-AAA5-8634D9553193}mensajes'), FALSE);
$RootMenu->AddMenuItem(13, $Language->MenuPhrase("13", "MenuText"), "", -1, "", IsLoggedIn(), FALSE, TRUE);
$RootMenu->AddMenuItem(31, $Language->MenuPhrase("31", "MenuText"), "alertaslist.php", 13, "", AllowListMenu('{BF52BDE3-CE95-4CBB-AAA5-8634D9553193}alertas'), FALSE);
$RootMenu->AddMenuItem(1, $Language->MenuPhrase("1", "MenuText"), "agendalist.php", 13, "", AllowListMenu('{BF52BDE3-CE95-4CBB-AAA5-8634D9553193}agenda'), FALSE);
$RootMenu->AddMenuItem(7, $Language->MenuPhrase("7", "MenuText"), "noticiaslist.php", 13, "", AllowListMenu('{BF52BDE3-CE95-4CBB-AAA5-8634D9553193}noticias'), FALSE);
$RootMenu->AddMenuItem(10, $Language->MenuPhrase("10", "MenuText"), "seccioneslist.php", 13, "", AllowListMenu('{BF52BDE3-CE95-4CBB-AAA5-8634D9553193}secciones'), FALSE);
$RootMenu->AddMenuItem(29, $Language->MenuPhrase("29", "MenuText"), "fuentelist.php", 13, "", AllowListMenu('{BF52BDE3-CE95-4CBB-AAA5-8634D9553193}fuente'), FALSE);
$RootMenu->AddMenuItem(17, $Language->MenuPhrase("17", "MenuText"), "", -1, "", IsLoggedIn(), FALSE, TRUE);
$RootMenu->AddMenuItem(15, $Language->MenuPhrase("15", "MenuText"), "comentarioslist.php", 17, "", AllowListMenu('{BF52BDE3-CE95-4CBB-AAA5-8634D9553193}comentarios'), FALSE);
$RootMenu->AddMenuItem(18, $Language->MenuPhrase("18", "MenuText"), "", -1, "", IsLoggedIn(), FALSE, TRUE);
$RootMenu->AddMenuItem(22, $Language->MenuPhrase("22", "MenuText"), "quinielalist.php", 18, "", AllowListMenu('{BF52BDE3-CE95-4CBB-AAA5-8634D9553193}quiniela'), FALSE);
$RootMenu->AddMenuItem(26, $Language->MenuPhrase("26", "MenuText"), "pollslist.php", 18, "", AllowListMenu('{BF52BDE3-CE95-4CBB-AAA5-8634D9553193}polls'), FALSE);
$RootMenu->AddMenuItem(2, $Language->MenuPhrase("2", "MenuText"), "archivoslist.php", 18, "", AllowListMenu('{BF52BDE3-CE95-4CBB-AAA5-8634D9553193}archivos'), FALSE);
$RootMenu->AddMenuItem(4, $Language->MenuPhrase("4", "MenuText"), "galeriaslist.php", 18, "", AllowListMenu('{BF52BDE3-CE95-4CBB-AAA5-8634D9553193}galerias'), FALSE);
$RootMenu->AddMenuItem(8, $Language->MenuPhrase("8", "MenuText"), "paginaslist.php", 18, "", AllowListMenu('{BF52BDE3-CE95-4CBB-AAA5-8634D9553193}paginas'), FALSE);
$RootMenu->AddMenuItem(19, $Language->MenuPhrase("19", "MenuText"), "", -1, "", IsLoggedIn(), FALSE, TRUE);
$RootMenu->AddMenuItem(3, $Language->MenuPhrase("3", "MenuText"), "publicidadeslist.php", 19, "", AllowListMenu('{BF52BDE3-CE95-4CBB-AAA5-8634D9553193}publicidades'), FALSE);
$RootMenu->AddMenuItem(23, $Language->MenuPhrase("23", "MenuText"), "", -1, "", IsLoggedIn(), FALSE, TRUE);
$RootMenu->AddMenuItem(12, $Language->MenuPhrase("12", "MenuText"), "usuarioslist.php", 23, "", AllowListMenu('{BF52BDE3-CE95-4CBB-AAA5-8634D9553193}usuarios'), FALSE);
$RootMenu->AddMenuItem(-1, $Language->Phrase("Logout"), "logout.php", -1, "", IsLoggedIn());
$RootMenu->AddMenuItem(-1, $Language->Phrase("Login"), "login.php", -1, "", !IsLoggedIn() && substr(@$_SERVER["URL"], -1 * strlen("login.php")) <> "login.php");
$RootMenu->Render();
?>
	</div><!-- /content -->
</div><!-- /page -->
</body>
</html>
<?php

	 // Close connection
	$conn->Close();
?>
